package com.xuzhiguang.baidu.pan.sdk.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

import java.util.List;

/**
 * @author xuzhiguang
 * @date 2020/6/26 23:23
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public class BasicFileMetasParams {

    /**
     * 查询共享目录文件时需要，格式: /<share>uk-fsid，
     * uk对应共享目录创建者ID，fsid对应共享目录的fsid
     */
    private String path;

    /**
     * fsid数组，数组中元素类型为uint64，大小上限100
     */
    private List<Long> fsids;

    /**
     * 是否需要缩略图地址，0 否、1 是，默认0
     */
    private Integer thumb;

    /**
     * 	是否需要文件下载地址dlink，0 否、1 是，默认0
     */
    private Integer dlink;

    /**
     * 图片是否需要拍摄时间、原图分辨率等其他信息，
     * 0 否、1 是，默认0
     */
    private Integer extra;

    @Override
    public String toString() {
        return "BasicFileMetasParams{" +
                "path='" + path + '\'' +
                ", fsids=" + fsids +
                ", thumb=" + thumb +
                ", dlink=" + dlink +
                ", extra=" + extra +
                '}';
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public List<Long> getFsids() {
        return fsids;
    }

    public void setFsids(List<Long> fsids) {
        this.fsids = fsids;
    }

    public Integer getThumb() {
        return thumb;
    }

    public void setThumb(Integer thumb) {
        this.thumb = thumb;
    }

    public Integer getDlink() {
        return dlink;
    }

    public void setDlink(Integer dlink) {
        this.dlink = dlink;
    }

    public Integer getExtra() {
        return extra;
    }

    public void setExtra(Integer extra) {
        this.extra = extra;
    }
}
